package cn.java.Concurrency;

/**
 * @author 小石潭记
 * @date 2021/12/19 10:31
 * @Description: ${todo}
 */
public class MyRunnable implements Runnable {

    private UserInfo userInfo;

    public MyRunnable(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    @Override
    public void run() {
        userInfo.setUsername("张三");
        userInfo.setPassword("123456");
    }
}
